﻿using PMS.Core.Configuration;

namespace PMS.Data.Entities.Settings
{
    /// <summary>
    /// Admin area settings
    /// </summary>
    public class AdminAreaSettings : ISettings
    {
        /// <summary>
        /// Default grid page size
        /// </summary>
        public int DefaultGridPageSize { get; set; }

        /// <summary>
        /// Popup grid page size (for popup pages)
        /// </summary>
        public int PopupGridPageSize { get; set; }

        /// <summary>
        /// A comma-separated list of available grid page sizes
        /// </summary>
        public string GridPageSizes { get; set; }

        /// <summary>
        /// A value indicating whether to use rich editor on message templates and campaigns details pages
        /// </summary>
        public bool UseRichEditorInMessageTemplates { get; set; }

        /// <summary>
        /// Gets or sets 是否全量显示后台菜单 
        /// True:不分角色权限全部显示， 
        /// False 按角色权限显示菜单
        /// </summary>
        public bool DisplayAllSystemMenus { get; set; }

        /// <summary>
        /// 未授权按钮是否显示为禁用状态
        /// True: 未授权按钮在页面中呈现禁用状态，无法点击响应
        /// False:未授权按钮在页面中正常点击响应，后台对操作权限进行查询后，如无操作权限则显示无权限页面或返回无操作权限提示
        /// </summary>
        public bool DisableUnauthorizedButtons { get; set; }
    }
}
